package cn.hfatec.shms.web.members.userGrade.service;

import java.util.List;
import java.util.HashMap;


import cn.hfatec.shms.advice.annotation.OracleDataSource;
import cn.hfatec.shms.advice.annotation.SqlServerSource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hfatec.base.BaseDao;
import cn.hfatec.Page;
import cn.hfatec.Table;
import cn.hfatec.shms.web.members.userGrade.model.UserGrade;
import cn.hfatec.shms.web.members.userGrade.dao.UserGradeDao;
import cn.hfatec.shms.web.members.userGrade.model.UserGradeParams;

import javax.annotation.Resource;



/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Service("UserGradeService")
public class UserGradeService {

    public static final String BEAN_ID = "UserGradeService";

    //注入Dao层
    @Resource(name = "UserGradeDao")
    private UserGradeDao userGradeDao;

    //注入BaseDao
    @Resource(name = "BaseDao")
    private BaseDao baseDao;

    /**
     *
     * 查询数据
     *
     * @param userGradeParams
     *
     */
    @Transactional
    @SqlServerSource
     public List queryUserGradeTable(UserGradeParams userGradeParams){
        HashMap<String, Object> params = new HashMap<String, Object>();
        params.put("params", userGradeParams);
        return baseDao.queryList("queryUserGrade", params);
    }
      }